package configs

import (
	"fmt"
	"github.com/spf13/viper"
)

func Feature() {

	viper.SetConfigFile("../../config/feature.yaml")
	err := viper.ReadInConfig()
	if err != nil {
		panic("配置文件读取失败")
		return
	}
	err = viper.Unmarshal(&Config)
	if err != nil {
		panic("配置文件连接失败")
		return
	} else {
		fmt.Println("生产配置文件连接成功")
	}
}
